home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_7.lha / 3_7 / 3_7a.c next >
Text File  |  1993-08-08  |  275b  |  15 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. /  Count the characters within the string.
  6. /  Version 1
  7. nt strlen(const char *s)
  8.  
  9.    int i = 0;
  10.    while (*s++)
  11. i++;
  12.    return i;
  13.  
  14.  
  15.